package com.sdppf.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class TaskDocument {
	private int documentId;
	private String documentName;
	private String documentDesc;
	private Directory directory;
	private ProjectTask task;
	public void setDocumentId(int documentId) {
		this.documentId = documentId;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public int getDocumentId() {
		return documentId;
	}
	public void setDocumentName(String documentName) {
		this.documentName = documentName;
	}
	public String getDocumentName() {
		return documentName;
	}
	public void setDocumentDesc(String documentDesc) {
		this.documentDesc = documentDesc;
	}
	public String getDocumentDesc() {
		return documentDesc;
	}
	public void setDirectory(Directory directory) {
		this.directory = directory;
	}
	@ManyToOne
	public Directory getDirectory() {
		return directory;
	}
	public void setTask(ProjectTask task) {
		this.task = task;
	}
	@ManyToOne
	@JoinColumn(name="taskid")
	public ProjectTask getTask() {
		return task;
	}
}
